home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus Special 14
/
AMIGAplus Sonderheft 14 (1998)(ICP)(DE)[!].iso
/
c
/
copy2clip.doc
< prev
next >
Wrap
Text File
|
1995-12-03
|
2KB
|
68 lines
*************************************************************************
****************************** COPY2CLIP ******************************
*************************************************************************
-------------------
Copyright © 1995
Nick Christie.
39 St Georges Drive
Bransgore BH23 8EZ
Great Britain.
All Rights Reserved
-------------------
Version: Copy2Clip 1.0 (3.12.95)
Author: Nick Christie
E-Mail: nick.christie@oucs.ox.ac.uk
Address: 39 St Georges Drive
Bransgore BH23 8EZ
Great Britain.
Keywords: Programming, Shell, CLI, Clipboard.
Purpose: Copies from file or stdin to clipboard.
Requires: Kickstart 2.04+ (V37+).
Distribution: Freeware. Source in C included.
Compiler: SAS/C V6.56
To Make: smake -f Copy2Clip.smake
You will need to edit the smakefile if you do not put
TinyStart.o in LIB:. Note the use of registerized
parameters and the GST file 'include:all.gst'.
Usage: Copy2Clip FILE UNIT/K/N BIN=BINARY/S BUF=BUFSIZE/K/N
Where: FILE
optional, pathname of file to copy to clipboard. If
omitted, stdin is copied to clipboard until EOF.
UNIT
clipboard unit number to use (0 to 255), default is 0.
BINARY
switch to copy in binary mode - no encapsulation within
an IFF FTXT form is performed. Default is to encapsulate.
BUFSIZE
size in bytes of file buffer, default 2048, minimum 256.
Returns: 0 if all went hokey-dokey and input was copied to clip.
10 if the input file was not found
20 if there was some other error, eg. not enough memory.
Bugs: Due to bugs in the iffparse library prior to V39, correct
operation under earlier OS's is not assured: see autodoc
for OpenClipboard().
Notes: If an error occurs, an error message will be printed to
stdout.
Use BINARY mode with IFF files only: all clipboard data
must be in IFF format.
$VER: Copy2Clip.doc 1.0 (3.12.95)